package com.eyaomall.wxmall;

import java.io.File;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.math.BigDecimal;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import org.aspectj.util.FileUtil;

import com.eyaomall.wxmall.model.pojo.ResWxUser;
import com.lycheeframework.core.common.util.JSONUtil;
import com.lycheeframework.mapping.MappingRuning;
import com.lycheeframework.mapping.db.Engine;

public class Test {

	public static void main(String[] args) throws IOException {
//		String url = "jdbc:mysql://118.178.18.202:3306/SASS?characterEncoding=utf8";
//		String userName = "root";
//		String passwd = "123456";
//		String beanPath = "/Users/pro/Downloads/tmp/";
//		String sqlmapPath = "/Users/pro/Downloads/tmp/";
//		String packageName = "com.eyaomall.wxmall.model.po";
//		
//		MappingRuning runing = new MappingRuning(Engine.mysql, url, userName, passwd);
//		runing.generate("M_ADDRESS", beanPath, sqlmapPath, packageName);
////		runing.generate("M_AREA", beanPath, sqlmapPath, packageName);
//		runing.generate("M_ARTICLE", beanPath, sqlmapPath, packageName);
//		runing.generate("M_ARTICLE_CATEGORY", beanPath, sqlmapPath, packageName);
//		runing.generate("M_CATEGORY", beanPath, sqlmapPath, packageName);
//		runing.generate("M_COLLECT", beanPath, sqlmapPath, packageName);
//		runing.generate("M_COODS_CATEGORY", beanPath, sqlmapPath, packageName);
//		runing.generate("M_DEPOSIT", beanPath, sqlmapPath, packageName);
//		runing.generate("M_DISCOUNT_GOODS", beanPath, sqlmapPath, packageName);
//		runing.generate("M_DISCOUNT_RELATION", beanPath, sqlmapPath, packageName);
//		runing.generate("M_EMPLOYEE", beanPath, sqlmapPath, packageName);
//		runing.generate("M_EMPLOYEE_DEPOSIT", beanPath, sqlmapPath, packageName);
//		runing.generate("M_GOODS", beanPath, sqlmapPath, packageName);
//		runing.generate("M_GOODS_TRANSPORT", beanPath, sqlmapPath, packageName);
//		runing.generate("M_MALL_DESC", beanPath, sqlmapPath, packageName);
//		runing.generate("M_MALL_IMAGES", beanPath, sqlmapPath, packageName);
//		runing.generate("M_MATERIA", beanPath, sqlmapPath, packageName);
//		runing.generate("M_MATERIA_GROUP", beanPath, sqlmapPath, packageName);
//		runing.generate("M_MEMBRE", beanPath, sqlmapPath, packageName);
//		runing.generate("M_MERCHANTS", beanPath, sqlmapPath, packageName);
//		runing.generate("M_ORDER", beanPath, sqlmapPath, packageName);
//		runing.generate("M_ORDER_GOODS", beanPath, sqlmapPath, packageName);
////		runing.generate("M_RESOURCE", beanPath, sqlmapPath, packageName);
//		runing.generate("M_SHOP", beanPath, sqlmapPath, packageName);
//		runing.generate("M_SHOPPING_CHART", beanPath, sqlmapPath, packageName);
//		runing.generate("M_SHOP_EXT", beanPath, sqlmapPath, packageName);
//		runing.generate("M_SHOP_PAYMENT_RECORD", beanPath, sqlmapPath, packageName);
////		runing.generate("M_SMS", beanPath, sqlmapPath, packageName);
//		runing.generate("M_STORES", beanPath, sqlmapPath, packageName);
//		runing.generate("M_TRANS_TEMPLATE", beanPath, sqlmapPath, packageName);
//		runing.generate("M_TRANS_TEMPLATE_CITY", beanPath, sqlmapPath, packageName);
//		runing.generate("M_USER", beanPath, sqlmapPath, packageName);
//		runing.generate("M_WX_MEMBER", beanPath, sqlmapPath, packageName);
//		runing.generate("M_WX_MENU", beanPath, sqlmapPath, packageName);
		
//		System.out.println(URLEncoder.encode("https://test.yaoyifang.com","utf-8"));
		BigDecimal a = new BigDecimal("1.2");
		BigDecimal b = new BigDecimal("2.2");
		BigDecimal c = new BigDecimal("1");
		List<BigDecimal> list = new ArrayList<BigDecimal>();
		list.add(a);
		list.add(b);
		list.add(c);
		Collections.sort(list);
		
		System.out.println(list);
	}

}
